/************************************************************************

								Heroes IV
					  Copyright 2000, The 3DO Company

	------------------------------------------------------------------
  						       dialog_box.h

	$Header: /game/dialog_box.h $

	$NoKeywords: $

 ************************************************************************/
#ifndef DIALOG_BOX_H_INCLUDED
#define DIALOG_BOX_H_INCLUDED

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "window_background.h"

// a window which handles a variable size background.
class t_dialog_box : public t_window_background
{						
public:
	t_dialog_box( t_window* parent );
	t_dialog_box( t_screen_rect const& rect, t_window* parent );

    virtual void left_button_down( t_mouse_event const& event );
    virtual void left_button_up( t_mouse_event const& event );
    virtual void mouse_move( t_mouse_event const& event );

private:
	void drag( t_screen_point point );

	bool                               m_dragging;
	t_screen_point                     m_drag_start;
};


#endif // DIALOG_BOX_H_INCLUDED